package com.eqxiu.gateway.user

import com.eqxiu.js.JSMethods

import util.control.Breaks._

object Test {
  def main(args: Array[String]): Unit = {
    val array = Array(2,3,4,5,58,9)

//    breakable(
//       array.foreach { i =>
//        println(i)
//        if(i==5){
//          break()
//        }
//      }
//    )

//    val url = "http://store.eqxiu.com/scene-447460.html?recId=jd7dxib3,0.161,10.0.3.100:80,200,0.160,9264,180.163.225.116,-"
//    println(url.matches(".*eqxiu.com/scene.*"))

//    /Users/wangjunbo/Desktop/js

    import javax.script.ScriptEngineManager
    val manager = new ScriptEngineManager
    import javax.script.ScriptEngine
    val engine = manager.getEngineByName("js")

    val path = "/Users/wangjunbo/Desktop/js"
    import java.io.FileReader
    engine.eval(new FileReader(path ))
    import javax.script.Invocable
    val invocable = engine.asInstanceOf[Invocable]





  }
}
